<!doctype html>
<%@ page import="com.zx.mobile.domain.MobileUserDomain"%>
<%@ page import="com.zx.mobile.SessionHelper"%>
<%@ page contentType="text/html;charset=utf-8" pageEncoding="utf-8"
	language="java"%>
<%@ include file="/jsp/mobile/include/include.jsp"%>
<html lang="cn">
<head>
<%@ include file="/jsp/mobile/include/header.jsp"%>
<title>支付密码修改</title>
</head>

<body>
	<%-- <div class="head">
    <div class="auto">
        <span class="tit">密码修改</span> <a href="<%=request.getContextPath()%>/mobile/index/mywallet" class="ico retu"></a>
    </div>
</div> --%>
	<div class="main">
		<form id="pwdForm"
			action="<%=request.getContextPath()%>/mobile/index/modifypwd">
			<div class="ciTab mt15">
				<ul>
					<li><span class="tit">原密码</span> <input type="password"
						name="orgPwd" id="orgPwd" class="text" placeholder="输入原密码">
					</li>
					<li><span class="tit">新密码</span> <input name="newPwd"
						id="newPwd" type="password" class="text" placeholder="输入新密码" maxlength="6">
					</li>
					<li><span class="tit">确认密码</span> <input name="confirmPwd"
						id="confirmPwd" type="password" class="text" placeholder="密码确认" maxlength="6">
					</li>
				</ul>
			</div>
			<div class="payOk">
				<div class="nbtn mt20">
					<a class="butn" id="confirmAmt" href="javascript:changepwd();">确认</a>
				</div>
			</div>
			<input type="hidden" name="pwdType" id="pwdType" value="1">
		</form>
	</div>
	<script type="text/javascript">
		function changepwd() {
			var _orgPwd = $("#orgPwd").val();
			var _newPwd = $("#newPwd").val();
			var _confirmPwd = $("#confirmPwd").val();
			var _msg = "";
			if (_newPwd != _confirmPwd) {
				_msg += "密码输入不一致";
			}
			if (_orgPwd == "") {
				_msg += "请输入原密码";
			}
			if (_newPwd == "") {
				_msg += "请输入新密码";
			} else {
				if (_newPwd.length != 6) {
					_msg += "请输入6位支付密码";
				}
			}
			if (_confirmPwd == "") {
				_msg += "请输入确认密码";
			}
			if (_msg == "") {
				$("#pwdForm").submit();
			} else {
				window.openMsg(_msg, 3);
			}
		}
	</script>
</body>
</html>